// type.ts
// 多选框注册项类型：用于组组件与子组件通信
export type CheckboxRegistry = {
	value: any;
	currentChecked: boolean;
	updateChecked: (checked: boolean) => void;
};

// 多选框组上下文类型：提供给子组件的共享配置
export type CheckboxGroupContext = {
	name: string;
	disabled: boolean;
	size: 'sm' | 'md' | 'lg';
	fill: string;
	textColor: string;
	register: (checkbox: CheckboxRegistry) => () => void;
	onToggle: (value: any) => void;
	variant?: Variant;
	buttonStyle?: boolean;
	border?: boolean;
};
export type Variant = 'info' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';